ETAT

Syntax: ETAT (file$) 
Location: ETAT

This function checks to see if the given file (passed as a string) exists and then checks upon its status (whether it can be opened etc). If necessary a standard error number is returned, otherwise ETAT will return 0.

Example:
PRINT ETAT('flp1_boot')

CROSS-REFERENCE:
FTEST works like ETAT but recognises the default device and directory.
FILE_OPEN, FOPEN, FOP_IN, FOP_OVER and FOP_NEW are all functions to open files without the need for error trapping.
OPEN, OPEN_IN and OPEN_NEW stop with error messages if an error occurs.  To avoid this, error trapping facilities, such as WHEN ERRor have to be used.
